
#include "DataManager.hpp"
#include "DataType.hpp"
#include "Data.hpp"
#include "PerceptSeq.hpp"
#include <iostream>
#include "global.hpp"

int	main(int argv, char **argc)
{
	std::cout << "Launching program with " << argv - 1 << " args { ";
	for (int i = 1; i < argv; ++i)
	{
		std::cout << argc[i] << " ";
		if (argc[i][0] == '1')
			G::lobal() -> setDebug(true);	
	}
	std::cout << "}" << std::endl;
	
	PerceptSeq*	perceptSeq = new PerceptSeq();
	perceptSeq -> initTest();
	perceptSeq -> addData(new Data(0, 1));
	perceptSeq -> addData(new Data(1, 1));
	perceptSeq -> addData(new Data(2, 2));
	perceptSeq -> addData(new Data(3, 1));
	perceptSeq -> nextData();
	std::cout << perceptSeq -> getOutputSeq(0) << std::endl;
	std::cout << perceptSeq -> getOutputSeq(1) << std::endl;
	perceptSeq -> genEntropies();
	std::cout << perceptSeq -> displayEntropies();
	
	// actes possibles
	/*
	DataManager*	actSeq = new DataManager("Act");
	DataType*	prendre = new DataType(actSeq -> addType("prendre"));
	DataType*	manger = new DataType(actSeq -> addType("manger"));
	DataType*	attendre = new DataType(actSeq -> addType("attendre"));
	DataType*	attaquer = new DataType(actSeq -> addType("attaquer"));
	*/
	
	
	return 0;
}
